
<%@ page import="dex.micros_gdc.Resource" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'resource.label', default: 'Resource')}" />
		<g:set var="taskEntityName" value="${message(code: 'task.label', default: 'Back Task')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
		<script>
			function resetMainWindowsSize(){
				var x=document.getElementsByTagName("html");

				x[0].style.width = "100%";
		    }

			resetMainWindowsSize();
		</script>
	</head>
	<body>
		<a href="#show-resource" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" controller="task" action="list"><g:message code="default.list.label" args="[taskEntityName]" /></g:link></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-resource" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list resource">

				<g:if test="${resourceInstance?.employeeId}">
				<li class="fieldcontain">
					<span id="employeeId-label" class="property-label"><g:message code="resource.employeeId.label" default="Employee ID" /></span>

						<span class="property-value" aria-labelledby="employeeId-label"><g:fieldValue bean="${resourceInstance}" field="employeeId"/></span>

				</li>
				</g:if>

				<g:if test="${resourceInstance?.name}">
				<li class="fieldcontain">
					<span id="name-label" class="property-label"><g:message code="resource.name.label" default="Name" /></span>

						<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${resourceInstance}" field="name"/></span>

				</li>
				</g:if>

				<g:if test="${resourceInstance?.role}">
				<li class="fieldcontain">
					<span id="role-label" class="property-label"><g:message code="resource.role.label" default="Role" /></span>

						<span class="property-value" aria-labelledby="role-label"><g:fieldValue bean="${resourceInstance}" field="role"/></span>

				</li>
				</g:if>

				<g:if test="${resourceInstance?.email}">
				<li class="fieldcontain">
					<span id="email-label" class="property-label"><g:message code="resource.email.label" default="Email" /></span>

						<span class="property-value" aria-labelledby="email-label"><g:fieldValue bean="${resourceInstance}" field="email"/></span>

				</li>
				</g:if>

				<g:if test="${resourceInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="resource.status.label" default="Status" /></span>

						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${resourceInstance}" field="status"/></span>

				</li>
				</g:if>

				<g:if test="${resourceInstance?.phoneNumber}">
				<li class="fieldcontain">
					<span id="phoneNumber-label" class="property-label"><g:message code="resource.phoneNumber.label" default="Phone Number" /></span>

						<span class="property-value" aria-labelledby="phoneNumber-label"><g:fieldValue bean="${resourceInstance}" field="phoneNumber"/></span>

				</li>
				</g:if>
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${resourceInstance?.id}" />
					<g:link class="edit" action="edit" id="${resourceInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
